﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRMS_Model;
using DataManager;

namespace HRMS.Models
{
    public class Jobs
    {
        public static void AddJob(Job job)
        {
            using (var jobEntity = new HRMSEntities())
            {
                jobEntity.Jobs.AddObject(job);
                jobEntity.SaveChanges();
            }
        }
        public static List<Job> GetJobs()
        {
            using (var jobEmtity = new HRMSEntities())
            {
                return jobEmtity.Jobs.ToList();
            }

        }
    }
}